package com.example.blog.module.service;

import com.example.blog.module.entity.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.blog.module.entity.VO.Result;
import com.example.blog.module.entity.VO.UserVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zjx
 * @since 2022-11-22
 */
public interface SysUserService extends IService<SysUser> {
    SysUser findUserById(Long userId);

    SysUser findUser(String account,String pwd);

    /**
     * 根据token查询用户信息
     * @param token
     * @return
     */
    Result findUserByToken(String token);

    /**
     * 根据账户查找用户
     * @param account
     * @return
     */
    SysUser findUserByAccount(String account);

    UserVo findUserVoById (Long userId);
}
